package org.jeecg.modules.meta.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 元数据
 * @author： jeecg-boot
 * @date：   2019-05-14
 * @version： V1.0
 */
@Data
@TableName("t_sys_tableinfo")
public class SysTableinfo implements Serializable {
    private static final long serialVersionUID = 1L;
	/**id*/
	@TableId(type = IdType.AUTO)
	private String id;
	/**表id*/
	@Excel(name = "表id", width = 15)
	private String fdTableid;
	/**表名*/
	@Excel(name = "表名", width = 15)
	private String fdTablename;
	/**表描述*/
	@Excel(name = "表描述", width = 15)
	private String fdTabledesc;
	/**schema*/
	@Excel(name = "schema", width = 15)
	private String fdSchema;
	/**系统编号*/
	@Excel(name = "系统编号", width = 15)
	private String fdSysid;
	/**表创建时间*/
	@Excel(name = "表创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date fdCreatetime;

	/**表创建时间*/
	@Excel(name = "表更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date fdUpdatetime;

	/**状态0:正常，1：同步中，2：已删除*/
	@Excel(name = "状态0:正常，1：同步中，2：已删除,3：新增，4：更新", width = 15,dicCode = "fieldinfo_state")
	@Dict(dicCode = "fieldinfo_state")
	private String fdStatus;
	/**分区字段*/
	@Excel(name = "分区字段", width = 15)
	private String fdLoaddt;
	@Excel(name = "分区字段二", width = 15)
	private String fdPartition2;

	@Excel(name = "类型", width = 15, dicCode = "t_sys_tableinfo_type")
	@Dict(dicCode = "t_sys_tableinfo_type")
	private String fdType;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
	private Integer createUser;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date updateTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
	private Integer updateUser;
	/**是否删除*/
	@Excel(name = "是否删除", width = 15)
	private Integer isDetele;
}
